package com.ljq.ipi;

/**
 * Description:冰箱
 * Author:ljq
 * Date:2025-02-16
 * Time:23:32
 */
public class Refrigerator extends  Appliance{
    private double capacity;        // 冰箱容量（单位：升）
    private String coolingType;     // 制冷方式（如直冷、风冷等）

    public Refrigerator(double capacity, String coolingType) {
        this.capacity = capacity;
        this.coolingType = coolingType;
    }

    public Refrigerator(String brand, String model, String color, double price, String manufacturer, double capacity, String coolingType) {
        super(brand, model, color, price, manufacturer);
        this.capacity = capacity;
        this.coolingType = coolingType;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    public String getCoolingType() {
        return coolingType;
    }

    public void setCoolingType(String coolingType) {
        this.coolingType = coolingType;
    }
}
